#ifndef DAILYSCHEDULE_H
#define DAILYSCHEDULE_H

using namespace std;

#include <set>
#include "Appointment.h"

typedef  bool(*fnCompareAppointment)(const Appointment*,const Appointment*) ; 
class DailySchedule 
{

friend class WeeklySchedule;

private:
	set<Appointment*,bool(*)(const Appointment*,const Appointment*)> meetings;
	Day dayOfWeek;

public:
	DailySchedule(Day);

	bool setAnAppointment(Appointment*);

	Appointment* removeAnAppointment(Time const & startTime);

	Appointment* findAny(Time const & startTime) const;
	
	Appointment* find(Time const & startTime) const;

	virtual ~DailySchedule();

};

#endif